/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SessionBeans;

import Entidades.Relacion;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Joni
 */
@Stateless
@LocalBean
public class RelacionesDAO {

    @PersistenceContext(name = "Tienda_asalineroPU")
    private EntityManager em;
    
    public void insertar(Relacion relacion) {
        em.persist(relacion);
    }
}
